using Assets.IOLibrary;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class MainUi : MonoBehaviour
{
    public Text lab101;
    public Text lab102;
    public Text lab103;
    public Text lab201;
    public Text lab202;
    // Start is called before the first frame update
    void Start()
    {
        InvokeRepeating(nameof(LabUpdate), 0, 2);
    }

    void LabUpdate()
    {
        lab101.text = AppSettings.Instance.Sys.IO.PLC101.Flag.ToString();
        lab102.text = AppSettings.Instance.Sys.IO.PLC102.Flag.ToString();
        lab103.text = AppSettings.Instance.Sys.IO.PLC103.Flag.ToString();
        lab201.text = AppSettings.Instance.Sys.IO.PLC201.Flag.ToString();
        lab202.text = AppSettings.Instance.Sys.IO.PLC202.Flag.ToString();
    }
}
